import Vue from "vue"
import Vuex from "vuex"

Vue.use(Vuex)

const store = new Vuex.Store({
	modules: module,
	state: {
		// city_name: "",
		// city_id:""
		city: {
			id: "",
			name: ""
		},
		storeDetails: "",
		orderInfo: null,
		ticketInfo: null,
		roomInfo: null,
	},
	getters: {},
	mutations: {
		select_city(state, obj) {
			state.city.name = obj.name
			state.city.id = obj.id
		},
		updateStoreDetails(state, obj) {
			state.storeDetails = obj
		},
		updateOrderInfo(state, obj) {
			state.orderInfo = obj
		},
		updateTicketInfo(state, obj) {
			state.ticketInfo = obj
		},
		updateRoomInfo(state, obj) {
			state.roomInfo = obj
		}

	}
})

export default store